﻿using NJ.Common.Mapping;
using NJ.Entity;

namespace NJ.Dto.RoleMenu
{
    /// <summary>
    /// 菜单
    /// </summary>
    [AutoMap(typeof(MenuEntity))]
    public class MenuDto : IMapper
    {
        public int Id { get; set; }
        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        public string Url { get; set; }
        /// <summary>
        /// 图标
        /// </summary>
        public string Icon { get; set; }
        /// <summary>
        /// 父级ID
        /// </summary>
        public int PId { get; set; }
        /// <summary>
        /// 等级阶梯 1 1-1 1-1-1
        /// </summary>
        public string Leader { get; set; }
    }
}
